package com.siyuanren.gcocp.service;

import com.siyuanren.gcocp.dto.wx.WxUserVoucherDTO;
import com.siyuanren.gcocp.entity.WxUserVoucher;
import com.siyuanren.gcocp.entity.WxVoucher;
import com.siyuanren.gcocp.vo.QueryActiveVoucherVO;
import com.siyuanren.gcocp.vo.QueryVoucherVO;

import java.util.List;

/**
 * Created by   anxing
 * Project_name gcocp-parent
 * Path         com.siyuanren.gcocp.service
 * Date         2018/6/8
 * Time         10:11
 * Description 优惠券服务类
 */
public interface UserVoucherService {

    /**
     * 查询当前课程可用的优惠券列表
     * @return
     */
    public List<WxUserVoucher> getVoucherForCourse(QueryVoucherVO voucherVO);

    /**
     * 返回正常的优惠券
     * @param userId
     * @return
     */
    public List<WxUserVoucher> getNormalVoucher(Integer userId);

    /**
     * 返回过期和使用过的优惠券
     * @param userId
     * @return
     */
    public List<WxUserVoucher> getOverdueVoucher(Integer userId);

    /**
     * 是否为第一次使用优惠券
     * @return
     */
    boolean isFirstUseVoucher(Integer userId);
}
